Smush\Core\Media\Media_Item D

Total Complexity 198
Dependencies 9
Dependents 14
Total lines 1,134
Lines of code 669
Logical lines of code 314
Comment lines 218
Methods 105
Properties 26

Methods 105

Method Rating Maintainability Complexity Lines of code
prepare_errors()
A
47 9 37
make_attachment_meta()
S
50 6 28
prepare_sizes()
S
55 5 21
update_transparent_meta()
S
63 5 11
prepare_full_size()
S
53 4 24
arrays_same()
S
64 4 10
get_array_value()
S
73 3 5
update_ignored_meta()
S
64 3 10
update_backup_sizes()
S
65 3 9
prepare_smushable_sizes()
S
66 3 9
size_limit_exceeded()
S
68 3 8
is_animated()
S
66 3 9
update_animated_meta()
S
72 3 5
is_transparent()
S
66 3 9
has_wp_metadata()
S
70 3 6
get_missing_file_name()
S
67 3 8
files_exist()
S
67 3 8
get_file_name_exceeding_limit()
S
68 3 8
prepare_scaled_size()
S
66 3 8
attachment_metadata_as_size_metadata()
S
61 2 13
save()
S
63 2 12
__construct()
S
64 2 10
get_attached_file()
S
71 2 6
get_full_or_scaled_size()
S
74 2 5
update_wp_metadata()
S
70 2 6
update_attached_file()
S
68 2 7
set_animated()
S
67 2 8
get_wp_metadata()
S
72 2 6
get_missing_sizes()
S
71 2 6
set_transparent()
S
67 2 8
is_outdated()
S
74 2 4
reset()
S
74 2 5
get_original_image_path()
S
71 2 6
set_outdated()
S
71 2 6
is_png()
S
75 2 4
get_post()
S
71 2 6
get_mime_type()
S
72 2 6
get_registered_wp_sizes()
S
72 2 6
update_post_mime_type()
S
65 2 10
can_be_restored()
S
71 2 6
get_errors()
S
72 2 6
is_ignored()
S
72 2 6
get_edit_link()
S
72 2 6
get_backup_sizes()
S
72 2 6
get_smushable_sizes()
S
72 2 6
get_backup_sizes_meta()
S
75 2 4
get_sizes()
S
72 2 6
prepare_backup_sizes()
S
64 2 10
remove_backup_size()
S
67 2 8
prepare_relative_file_path()
S
68 2 7
original_image_exists()
S
70 2 6
is_image()
S
72 2 6
get_relative_file_dir()
S
69 2 7
get_relative_file_path()
S
72 2 6
get_scaled_or_full_size()
S
74 2 5
get_wp_metadata_size()
S
71 2 6
is_mime_type_supported()
S
72 2 6
is_skipped()
S
77 2 4
get_wp_metadata_sizes()
S
71 2 6
set_registered_wp_sizes()
S
81 1 3
get_size_urls()
S
74 1 5
get_registered_wp_size()
S
79 1 3
get_base_url()
S
70 1 6
get_size_paths()
S
74 1 5
set_backup_sizes()
S
76 1 4
initialize_size()
S
65 1 10
get_default_backup_size()
S
80 1 3
add_backup_size()
S
65 1 9
make_backup_sizes_meta()
S
74 1 5
get_backup_size()
S
79 1 3
remove_default_backup_size()
S
81 1 3
animated_meta_exists()
S
76 1 4
get_dir()
S
70 1 6
get_full_size()
S
80 1 3
set_size_limit()
S
81 1 3
get_size_limit()
S
82 1 3
get_human_size_limit()
S
80 1 3
get_id()
S
82 1 3
has_missing_sizes()
S
80 1 3
fetch_wp_metadata()
S
76 1 4
file_name_from_path()
S
80 1 3
prepare_edit_link()
S
82 1 3
get_post_meta()
S
79 1 3
has_size()
S
75 1 4
has_scaled_size()
S
80 1 3
has_full_size()
S
80 1 3
get_size()
S
79 1 3
get_scaled_size()
S
80 1 3
get_main_size()
S
81 1 3
file_path_has_scaled_postfix()
S
78 1 3
has_smushable_sizes()
S
80 1 3
check_is_mime_type_supported()
S
72 1 5
check_is_image()
S
80 1 3
is_smushable_filter()
S
78 1 3
prepare_ignored()
S
80 1 3
set_ignored()
S
76 1 4
smush_image_filter()
S
79 1 3
transparent_meta_exists()
S
76 1 4
is_valid()
S
80 1 3
has_animated_mime_type()
S
79 1 3
set_settings()
S
81 1 3
fetch_post_mime_type()
S
81 1 3
set_mime_type()
S
81 1 3
has_errors()
S
81 1 3
is_large()
S
73 1 5